home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-06-09 | 1.1 KB | 53 lines | [TEXT/MPS ] |
- --
- -- Class of generic highlights, plus specific objects
- --
- -- Dan Crow
- --
- -- 23/12/94
- --
- --
- -- © 1994, 1995 Art of Memory Ltd.
- -- All Rights Reserved
- --
- -- This file is supplied as part of the TextPak demonstration. You are only
- -- entitled to use this software to understand how the demonstration works.
- -- You may not duplicate, modify, reproduce or distribute this software in
- -- any form. If you wish to purchase a licence to use this software, please
- -- contact Art of Memory Ltd.
- --
- class genericGlassHighlight is SHAPE;
-
- has
- OffScreen()
- do
- self.show(false);
- self.enable(false);
- end;
-
- Blink(newX, newY, newWidth, newHeight)
- newX is? INTEGER;
- newY is? INTEGER;
- newWidth is? INTEGER;
- newHeight is? INTEGER;
-
- do
- self.X := newX;
- self.Y := newY;
- self.Width := newWidth;
- self.Height := newHeight;
-
- if self.myShape=RECTANGLE then
- self.DrawOnRectangle();
- else if self.myShape=CIRCLE then
- self.DrawOnCircle();
- end;
- end;
-
- DrawOnRectangle()
- external "DrawOnRectangle";
-
-
- DrawOnCircle()
- external "DrawOnCircle";
-
- end;